package com.ygbhu.design.builder.demo2;

/**
 * @program: design-pattern
 * @description: 生产者
 * @author: smzhu3
 * @create: 2021-06-24 15:12
 **/
public class ProductBuilder extends Builder {
    private Kfc kfc;
    public ProductBuilder() {
        kfc=new Kfc();
    }

    @Override
    Builder hamburger(String msg) {
        kfc.setHamburger(msg);
        return this;
    }

    @Override
    Builder frenchFries(String msg) {
        kfc.setFrenchFries(msg);
        return this;
    }

    @Override
    Builder coke(String msg) {
        kfc.setCoke(msg);
        return this;
    }

    @Override
    Builder chickenLeg(String msg) {
        kfc.setChickenLeg(msg);
        return this;
    }

    @Override
    Kfc builderKfc() {
        return kfc;
    }
}
